package soccer.action;

import java.util.List;

import soccer.model.coach.CoachDAOImpl;
import soccer.model.team.Team;

public class CoachActions {

	public List searchCoachByName(String name,String surname){
		
		List coachList=null;
		CoachDAOImpl coachDAOImpl=new CoachDAOImpl();
		coachList=coachDAOImpl.searchCoachByName(name, surname);
		return coachList;
	}
	public List searchCoachByTeam(String teamName){
		List coachList=null;
		CoachDAOImpl coachDAOImpl=new CoachDAOImpl();
		coachList=coachDAOImpl.searchCoachByTeam(teamName);
		return coachList;
	}
}
